#pragma once

#include "Parser.h"
#include "../Packet/DataPacket.h"
#include "../Packet/TimeSlot.h"

class CMediaReader
{
public:
	CMediaReader( string );
	virtual ~CMediaReader(void);
protected :

	string filename ;
	Parser * parser;

public :
	virtual Bool	Initialize() = 0;
	virtual string GetSDP() = 0;
	virtual CTimeSlot * GetTimeSlot( UInt32 ) = 0 ;
    virtual UInt32   GetDuration() = 0;
    virtual void    Close() = 0;
	virtual UInt32 *	GetLengthTable() = 0;
	virtual UInt32	GetSecondNum() = 0;

	virtual CDataPacket *	GetFirstDataPacket() = 0;
};
